package com.cwz.file.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @program: w-demo
 * @description: 文件配置属性
 * @author: Wen
 **/
@Data
@NoArgsConstructor
@Component
@RefreshScope
@ConfigurationProperties("attachment.file")
public class FileProperties {
	/**
	 * 允许上传的文件最大大小
	 */
	private Double maxSize;

	/**
	 * 允许上传的文件格式
	 */
	private Map<String, String> types;
}
